describe('practice-1-8', function () {

    it("用冒泡排序实现把数组中的元素按升序排序 ", function () {
        var arr_number = [5,3,9,6,8,2,7];
        var arr_number_res = bubble_sort(arr_number);
        var arr_num_correct = [2,3,5,6,7,8,9];
        for(var i = 0; i < arr_num_correct.length; i ++)
        {
            expect(arr_num_correct[i]).toBe(arr_number_res[i]);
        }
    });
});